using System;
using DISTQCPAPI.Respository;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DISTQCPAPI.UnitTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestConnetMySQL()
        {
            var dbContext = new MySQLSugarContext().GetClient();
            dbContext.DbFirst.CreateClassFile(@"e:\models", "DISTQCPAPI.Domain.Model");
            Assert.IsNotNull(dbContext);
        }
        [TestMethod]
        public void TestConnetOracle()
        {
            var dbContext = new OracleSugarContext().GetClient();
            dbContext.DbFirst.CreateClassFile(@"e:\models", "DISTQCPAPI.Domain.OracleModel");
            Assert.IsNotNull(dbContext);
        }
    }
}
